import { DictValueEnumObj } from '@/components/DictTag';
import {
  ProForm,
  ProFormDateTimePicker,
  ProFormRadio,
  ProFormSelect,
  ProFormText,
  ProFormTextArea,
  ProFormUploadButton,
} from '@ant-design/pro-components';
import { FormattedMessage } from '@umijs/max';
import { Card, Col, Form, Row, Tabs } from 'antd';
import moment from 'dayjs';
import React, { useEffect } from 'react';
import styles from './style.less';
export type DictTypeFormData = Record<string, unknown> & Partial<API.System.DictType>;

export type DictTypeFormProps = {
  onSubmit: (values: DictTypeFormData) => Promise<void>;
  values: Partial<API.System.DictType>;
  statusOptions: DictValueEnumObj;
};

const QestionForm: React.FC<DictTypeFormProps> = (props) => {
  const [form] = Form.useForm();
  const { statusOptions } = props;

  useEffect(() => {
    form.resetFields();
    form.setFieldsValue({
      dictId: props.values.dictId,
      dictName: props.values.dictName,
      dictType: props.values.dictType,
      status: props.values.status,
      createBy: props.values.createBy,
      createTime: props.values.createTime,
      updateBy: props.values.updateBy,
      updateTime: props.values.updateTime,
      remark: props.values.remark,
    });
  }, [form, props]);

  const handleFinish = async (values: Record<string, any>) => {
    props.onSubmit(values as DictTypeFormData);
  };
  return (
    <ProForm
      form={form}
      labelWrap={true}
      labelCol={{ flex: '100px' }}
      grid={true}
      submitter={false}
      layout="horizontal"
      onFinish={handleFinish}
    >
      <div style={{height:"470px",overflow:"auto",paddingBottom:"20px"}}>
      <Card
        title="基础信息"
        type="inner"
        style={{ marginTop: 16 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="所属部门"
              placeholder="请输入所属部门"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入所属部门！" defaultMessage="请输入所属部门！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="dictName"
              initialValue={moment('2021-08-09')}
              label="填报时间"
              placeholder="请输入填报时间"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入填报时间！" defaultMessage="请输入填报时间！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="dictName1"
              label="填报人"
              placeholder="请输入填报人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入填报人！" defaultMessage="请输入填报人！" />,
                },
              ]}
            />
          </Col>
        </Row>
      </Card>
      <Card
        title="问题信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="问题名称"
              placeholder="请输入问题名称"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入问题名称！" defaultMessage="请输入问题名称！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="产品名称"
              placeholder="请输入产品名称"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入产品名称！" defaultMessage="请输入产品名称！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="2"
              label="产品代号"
              placeholder="请输入产品代号"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入产品代号！" defaultMessage="请输入产品代号！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="装备类别"
              placeholder="请输入装备类别"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入装备类别！" defaultMessage="请输入装备类别！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="所属军兵种"
              placeholder="请输入所属军兵种"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入所属军兵种！" defaultMessage="请输入所属军兵种！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="3"
              label="问题等级"
              placeholder="请输入问题等级"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入问题等级！" defaultMessage="请输入问题等级！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="发现部门"
              placeholder="请输入发现部门"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发现部门！" defaultMessage="请输入发现部门！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="发现时机"
              placeholder="请输入发现时机"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发现时机！" defaultMessage="请输入发现时机！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="4"
              label="发生阶段"
              placeholder="请输入发生阶段"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发生阶段！" defaultMessage="请输入发生阶段！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="发生地点"
              placeholder="请输入发生地点"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发生地点！" defaultMessage="请输入发生地点！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="问题性质"
              placeholder="请输入问题性质"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入问题性质！" defaultMessage="请输入问题性质！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="5"
              label="操作人"
              placeholder="请输入操作人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入操作人！" defaultMessage="请输入操作人！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="故障件名称"
              placeholder="请输入故障件名称"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入故障件名称！" defaultMessage="请输入故障件名！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="故障件批次"
              placeholder="请输入故障件批次"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入故障件批次！" defaultMessage="请输入故障件批！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="6"
              label="故障件生产单位"
              placeholder="请输入故障件生产单位"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage
                      id="请输入故障件生产单位！"
                      defaultMessage="请输入故障件生产单位！"
                    />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="总师单位"
              placeholder="请输入总师单位"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入总师单位！" defaultMessage="请输入总师单位！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="总装单位"
              placeholder="请输入总装单位"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入总装单位！" defaultMessage="请输入总装单位！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="dictName7"
              label="问题所属原因"
              placeholder="请输入问题所属原因"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入问题所属原因！" defaultMessage="请输入原因！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="发现人"
              placeholder="请输入发现人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入发现人！" defaultMessage="请输入发现人！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="dictName"
              initialValue={moment('2021-08-09')}
              label="发生时间"
              placeholder="请输入发生时间"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发生时间！" defaultMessage="请输入发生时间！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="dictName"
              label="问题性质"
              placeholder="请输入问题性质"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入问题性质！" defaultMessage="请输入问题性质！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="质量问题管理等级"
              placeholder="请输入质量问题管理等级"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage
                      id="请输入质量问题管理等级！"
                      defaultMessage="请输入质量问题管理等级！"
                    />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="责任部门"
              placeholder="请输入责任部门"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入责任部门！" defaultMessage="请输入责任部门！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="dictName"
              label="责任人"
              placeholder="请输入责任人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入责任人！" defaultMessage="请输入责任人！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="问题概述"
          placeholder="请输入问题概述"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入问题概述！" defaultMessage="请输入问题概述！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="原因 (初步)分析"
          placeholder="请输入原因 (初步)分析"
          rules={[
            {
              required: false,
              message: (
                <FormattedMessage
                  id="请输入原因 (初步)分析！"
                  defaultMessage="请输入原因 (初步)分析！"
                />
              ),
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="备注"
          placeholder="请输入备注"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入备注！" defaultMessage="请输入备注！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="应急/处置措统"
          placeholder="请输入应急/处置措统"
          rules={[
            {
              required: false,
              message: (
                <FormattedMessage
                  id="请输入应急/处置措统！"
                  defaultMessage="请输入应急/处置措统！"
                />
              ),
            },
          ]}
        />
      </Card>
      <Card
        title="反馈单信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="发出单位"
              placeholder="请输入发出单位"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发出单位！" defaultMessage="请输入发出单位！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="发往单位"
              placeholder="请输入发往单位"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发往单位！" defaultMessage="请输入发往单位！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="质量问题原因及处理情况"
          placeholder="请输入质量问题原因及处理情况"
          rules={[
            {
              required: false,
              message: (
                <FormattedMessage
                  id="请输入质量问题原因及处理情况！"
                  defaultMessage="请输入质量问题原因及处理情况！"
                />
              ),
            },
          ]}
        />
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="编制人"
              placeholder="请输入编制人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入编制人！" defaultMessage="请输入编制人！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="发生时间"
              placeholder="请输入发生时间"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入发生时间！" defaultMessage="请输入发生时间！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="dictName"
              label="联系电话"
              placeholder="请输入联系电话"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入联系电话！" defaultMessage="请输入联系电话！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="传真"
              placeholder="请输入传真"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入传真！" defaultMessage="请输入传真！" />,
                },
              ]}
            />
          </Col>
        </Row>
      </Card>
      <Card
        title="通知单信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="信息分类"
              placeholder="请输入信息分类"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入信息分类！" defaultMessage="请输入信息分类！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="建议和要求"
          placeholder="请输入建议和要求"
          rules={[
            {
              required: false,
              message: (
                <FormattedMessage id="请输入建议和要求！" defaultMessage="请输入建议和要求！" />
              ),
            },
          ]}
        />
      </Card>
      <Card
        title="质量问题结案单信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="结案时间"
              placeholder="请输入结案时间"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入结案时间！" defaultMessage="请输入结案时间！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="质量问题处理和验证情况"
          placeholder="请输入质量问题处理和验证情况"
          rules={[
            {
              required: false,
              message: (
                <FormattedMessage
                  id="请输入质量问题处理和验证情况！"
                  defaultMessage="请输入质量问题处理和验证情况！"
                />
              ),
            },
          ]}
        />
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="验证人"
              placeholder="请输入验证人"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入验证人！" defaultMessage="请输入验证人！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="验证时间"
              placeholder="请输入验证时间"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入验证时间！" defaultMessage="请输入验证时间！" />
                  ),
                },
              ]}
            />
          </Col>
        </Row>
      </Card>
      <Card
        title="不合格品审理信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="产品型号"
              placeholder="请输入产品型号"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入产品型号！" defaultMessage="请输入产品型号！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="不合格产"
              placeholder="请输入不合格产"
              rules={[
                {
                  required: false,
                  message: (
                    <FormattedMessage id="请输入不合格产！" defaultMessage="请输入不合格产！" />
                  ),
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="dictName"
              label="不合产品图号"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="送检数"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="不合格欧"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="dictName"
              label="工序号"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="不合格品编号"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormText
              name="forDepartment"
              label="操作人"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="dictName"
              label="审理圾别"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="不合格情况描述"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="不合格产原因"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormRadio.Group
          options={[
            {
              label: '返工',
              value: '0',
            },
            {
              label: '报废',
              value: '1',
            },
            {
              label: '让步接收',
              value: '2',
            },
            {
              label: '降级使用',
              value: '3',
            },
            {
              label: '提交常设机构',
              value: '4',
            },
          ]}
          name="status"
          label="状态"
          initialValue={'0'}
          placeholder="请输入状态"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="返工结果"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="设计人员意见"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="客服代表意见"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="审理委员意见"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormRadio.Group
          options={[
            {
              label: '轻度偏离',
              value: '0',
            },
            {
              label: '严重偏离',
              value: '1',
            },
          ]}
          name="status"
          label="状态"
          initialValue={'0'}
          placeholder="请输入状态"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="技术要求以及偏离程度"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="偏离带来的影响"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="受影响的技术就态标识文件"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormTextArea
          name="remark"
          label="特定的用途"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
      </Card>
      <Card
        title="技术归零"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="归零时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: '1',
                },
              ]}
              name="status"
              label="是否扫零"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="主要障因"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="次要原园"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="结论"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormUploadButton label="上传归零报告" name="上传归零报告" action="upload.do" />
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="推施落实时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: 'b',
                },
              ]}
              name="status"
              label="是否落实措施"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="落实措施进展"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
      </Card>
      <Card
        title="管理归零"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="归零时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: 'b',
                },
              ]}
              name="status"
              label="是否扫零"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="主要障因"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="次要原园"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="结论"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormUploadButton label="上传归零报告" name="上传归零报告" action="upload.do" />
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="推施落实时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: 'b',
                },
              ]}
              name="status"
              label="是否落实措施"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="落实措施进展"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
      </Card>
      <Card
        title="完结信息"
        type="inner"
        style={{ marginTop: -20 }}
        className={styles.card}
        bordered={false}
      >
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: 'b',
                },
              ]}
              name="status"
              label="填报完成"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="完成时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="主要障因"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormSelect
              name="forDepartment"
              label="次要原园"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="结论"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
        <ProFormUploadButton label="上传归零报告" name="上传归零报告" action="upload.do" />
        <Row gutter={4}>
          <Col lg={8} md={8} sm={8}>
            <ProFormDateTimePicker
              name="forDepartment"
              label="推施落实时间"
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
          <Col lg={8} md={8} sm={8}>
            <ProFormRadio.Group
              options={[
                {
                  label: '是',
                  value: '0',
                },
                {
                  label: '否',
                  value: 'b',
                },
              ]}
              name="status"
              label="是否落实措施"
              initialValue={'0'}
              placeholder="请输入"
              rules={[
                {
                  required: false,
                  message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
                },
              ]}
            />
          </Col>
        </Row>
        <ProFormTextArea
          name="remark"
          label="落实措施进展"
          placeholder="请输入"
          rules={[
            {
              required: false,
              message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
            },
          ]}
        />
      </Card>
      <ProFormRadio.Group
        options={[
          {
            label: '是',
            value: '0',
          },
          {
            label: '否',
            value: 'b',
          },
        ]}
        name="status"
        label="审理意见"
        initialValue={'0'}
        placeholder="请输入状态"
        rules={[
          {
            required: false,
            message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
          },
        ]}
      />
      <ProFormTextArea
        name="remark"
        label="问题概述"
        placeholder="请输入"
        rules={[
          {
            required: false,
            message: <FormattedMessage id="请输入！" defaultMessage="请输入！" />,
          },
        ]}
      />
      </div>
      
    </ProForm>
  );
};

export default QestionForm;
